import 'package:flutter/material.dart';
import 'package:fun4live/pages/homePage.dart';
import 'package:fun4live/router/app_pages.dart';
import 'pages/mainPageView.dart';
import 'pages/homePage.dart';
import 'pages/homePageController.dart';
import 'package:get/get.dart';
import 'package:fun4live/router/route_path.dart';
void main() async{
  WidgetsFlutterBinding.ensureInitialized();
  Get.put(homePageController());
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return  GetMaterialApp(
      initialRoute: RoutePath.kIndex,
      getPages: AppPages.routes,
      //home: mainPageView()
    );
  }
}
